package com.xiaoshuidi.cloud.module.guanwang.controller.admin.guanwang.configvo;

import com.xiaoshuidi.cloud.module.guanwang.service.GuanWangConfiguration;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
public class CompanyLogoVO implements GuanWangConfiguration {

    @Schema(description = "图片")
    @NotNull(message = "请上传LOGO")
    private String picture;
    @Override
    public Set<ConstraintViolation<GuanWangConfiguration>> verifyParam(Validator validator) {
        return validator.validate(this);
    }
}
